﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucQuangCao.ascx.cs" Inherits="TTMarketing.CameraUserControl.QuangCao.ucQuangCao" %>
<asp:DataList ID="dlHotProduct" runat="server" DataSourceID="odsHinhAnh" 
    Width="100%">
                                <ItemTemplate>
                                    <table style="width: 100%;">
                                        <tr>
                                            <td>
                                                <asp:ImageButton ID="ibtnImage" runat="server" Height="160px" 
                                                    ImageUrl='<%# "~/Image/Upload/"+Eval("Name") %>' 
                                                    PostBackUrl='<%# Eval("Link") %>' Width="186px" />
                                            </td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
            <asp:ObjectDataSource ID="odsHinhAnh" runat="server" SelectMethod="getByTypeId" 
                TypeName="TTBusiness.ClassDB.clsBSImage">
                <SelectParameters>
                    <asp:Parameter DefaultValue="5" Name="typeId" Type="Int32" />
                </SelectParameters>
            </asp:ObjectDataSource>